package com.happly.happlycloud.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
@PropertySource(value = {"classpath:application.properties", "file:${happlyCloud.config.location}/application.properties"}, ignoreResourceNotFound = true)
public class SysConfig {

    @Value(value = "${passwordSalt}")
    private  String passwordSalt;

    @Value(value = "${redis1Ip}")
    private String redis1Ip;

    @Value(value = "${redis1Port}")
    private  String redis1Port;

    @Value(value = "${redis2Ip}")
    private String redis2Ip;

    @Value(value = "${redis2Port}")
    private  String redis2Port;

    @Value(value = "${redisMaxTotal}")
    private  String redisMaxTotal;

    @Value(value = "${redisMaxIdle}")
    private String redisMaxIdle;

    @Value(value = "${redisMinIdle}")
    private  String redisMinIdle;

    @Value(value = "${redisTestBorrow}")
    private  String redisTestBorrow;

    @Value(value = "${redisTestReturn}")
    private  String redisTestReturn;


}
